﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Tradex.Market {

    /// <summary>
    /// A Session defines a Timespan in which trading is enabled for a specific
    /// instrument on a specific exchange. This does not mean traing is active or even
    /// allowed during the complete session - trading may, for example be halted on
    /// specific instruments.
    /// </summary>
    [Serializable()]
    public class Session {

        /// <summary>
        /// Constructor taking all values.
        /// </summary>
        /// <param name="start"></param>
        /// <param name="end"></param>
        public Session(DateTime start, DateTime end) {
            Start = start;
            End = end;
        }

        /// <summary>
        /// Gets the start of the session.
        /// </summary>
        public DateTime Start { get; private set; }

        /// <summary>
        /// Gets the end of the session.
        /// </summary>
        public DateTime End { get; private set; }


    }
}
